﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MobileBroadbandLoggingMonitorGUI.UI.Interfaces;

namespace MobileBroadbandLoggingMonitorGUI
{
    public partial class ShareInformationView : Form, IShareInformationView
    {
        public ShareInformationView()
        {
            InitializeComponent();
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        #region IShareInformationView Members

        public string MobileBroadbandCarrierName
        {
            get
            {
                return _txbMobileBroadbandProviderName.Text;
            }
            set
            {
                _txbMobileBroadbandProviderName.Text = value;
            }
        }

        public string MobileSoftwareName
        {
            get
            {
                return _txbMobileSoftwareName.Text;
            }
            set
            {
                _txbMobileSoftwareName.Text = value;
            }
        }

        public string Email
        {
            get
            {
                return _txbEmail.Text;
            }
            set
            {
                _txbEmail.Text = value;
            }
        }


        public string InformationToBeShared
        {
            get
            {
                return _txbSharingInformation.Text;
            }
            set
            {
                _txbSharingInformation.Text = value;
            }
        }

        public event EventHandler ShareClicked;

        public event EventHandler CancelClicked;



        #endregion

        private void _btnShare_Click(object sender, EventArgs e)
        {
            if(ShareClicked != null)
            {
                ShareClicked(sender, e);
            }
        }

        private void _btnCancel_Click(object sender, EventArgs e)
        {
            if (CancelClicked != null)
            {
                CancelClicked(sender, e);
            }
        }

        private void _txbSharingInformation_Enter(object sender, EventArgs e)
        {
            _txbMobileBroadbandProviderName.Focus();

        }

       
    }
}
